Why doesn't (apply or [true false]) work in Clojure?

Posted by Trilok on Stack Overflow See other posts from Stack Overflow or by Trilok
Published on 2010-06-03T20:31:48Z Indexed on 2010/06/03 20:34 UTC
Read the original article Hit count: 166

Filed under:
|

From what I understand about apply, it unpacks a list and turns the elements into arguments for a function.

I see that (apply + [1 2 3]) works as expected, i.e: it's equivalent to (+ 1 2 3).

Why then is (apply or [true false]) invalid? Isn't it equivalent to (or true false) ?

© Stack Overflow or respective owner

Related posts about clojure

Related posts about apply